package com.example.cqtool

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.chenqi.tool.dialog.FootListDialog
import com.chenqi.tool.dialog.FootListDialogAdapter

class MainActivity : AppCompatActivity() {
    private val context = this
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.text).setOnClickListener {
            FootListDialog.Builder(context).setData(mutableListOf()).create(FootListDialogAdapter(this, mutableListOf("1", "2", "3")))
//            FootListDialog.Builder(context).setData(mutableListOf("1", "2", "3")).create()
        }

    }
}